-- GENERATED SPELL FOR [Caverndeep Looter] --


function spell0_6209(pUnit, Event) --@Grab Weapon,n/a--
pUnit:FullCastSpellOnTarget(10851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6209', 15301, 1)
end

function Sorts_6209(pUnit, Event)
local choix_sorts_6209 = math.random(0, 0)
if choix_sorts_6209 == 0 then
pUnit:RegisterEvent('spell0_6209', 1, 1)
end
end

function mob6209_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6209', math.random(1500, 3000), 1)
end

function mob6209_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6209_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6209_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6209, 1, 'mob6209_Action')
RegisterUnitEvent(6209, 2, 'mob6209_Leave')
RegisterUnitEvent(6209, 3, 'mob6209_Kill')
RegisterUnitEvent(6209, 4, 'mob6209_Die')
